﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;


namespace RedfinCrawlPro
{

    public class RedfinParcel
    {

        public RedfinParcel(JObject obj)
        {
           this.id = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "id"));
           this.longitude = JsonClassHelper.ReadFloat(JsonClassHelper.GetJToken<JValue>(obj, "longitude"));
           this.latitude = JsonClassHelper.ReadFloat(JsonClassHelper.GetJToken<JValue>(obj, "latitude"));
        }

        public readonly string id;
        public readonly double longitude;
        public readonly double latitude;
    }
}
